home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 2
/
NetNews Offline Volume 2.iso
/
news
/
comp
/
std
/
c
/
509
< prev
next >
Wrap
Text File
|
1996-08-06
|
1KB
|
28 lines
Newsgroups: comp.std.c
Path: phcoms4.seri.philips.nl!panther!baynes
From: baynes@ukpsshp1.serigate.philips.nl (Stephen Baynes)
Subject: Re: mapping a C structure
Sender: news@ukpsshp1.serigate.philips.nl (account for localnews)
Message-ID: <DnuB2y.AwD@ukpsshp1.serigate.philips.nl>
Date: Wed, 6 Mar 1996 09:44:58 GMT
References: <4hd0db$89l@wolfe.wimsey.com>
Organization: Philips Semiconductors, Southampton, UK
X-Newsreader: TIN [version 1.2 PL2]
Owen Townsend (owent@vanbc.wimsey.com) wrote:
: Does anybody have a program to calculate byte displacements for all fields
: within a C structure ?
You ANSI standard C compiler should have offsetof defined in <stddef.h>.
: I am assisting mainframe COBOL users to convert to Unix Micro Focus COBOL
ANSI C does not require that the compiler handling of structures is in anyway
compatible with any other compiler, cobol or otherwise.
--
Stephen Baynes baynes@ukpsshp1.serigate.philips.nl
Philips Semiconductors Ltd
Southampton My views are my own.
United Kingdom